<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Shaking Peach</title>
  <link rel="stylesheet" href="styles.css">
  <style>
    .peach-container {
  position: relative;
}

.P {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: shake2 2s infinite;
}

@keyframes shake2 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) rotate(-20deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  75% {
    transform: translate(-50%, -50%) rotate(20deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
  </style>
</head>
<body>
  <div class="peach-container">
    <img src="./images/桃子.png" alt="Peach" class="peach">
  </div>
</body>
</html>